<?php
require_once __DIR__."/vendor/autoload.php";

use App\MyUser;
use App\MyDB;
// use Doctrine\Common\Annotations\AnnotationRegistry;



// AnnotationRegistry::registerLoader('class_exists');

// var_dump(get_declared_classes());

$builder=new \DI\ContainerBuilder();
//$builder->addDefinitions(__DIR__."/app/test/beans.php");
//$container=$builder->build();
//
//$myuser=$container->get(\App\test\MyUser::class);
//var_dump($myuser->getAllUsers());




$builder->useAnnotations(true);//扫描注解
$container=$builder->build();
$myuser=$container->get(MyUser::class);
var_dump($myuser->myredis->getValue());